package com.qf.six.ssm.commen.exception;
import com.qf.six.ssm.commen.vo.ResponseCode;
import lombok.Getter;

/**
 * 持久化对象      PO
 * 请求参数查询对象 QO
 * 视图对象        VO
 * 系统的异常  message
 * 错误的message
 * 错误的 业务状态
 * @author ZL
 */
@Getter
public class BaseException extends RuntimeException {
    private int status;
    private String msg;
    private ResponseCode responseCode;

    public BaseException(ResponseCode responseCode) {
        this.status = responseCode.getStatus();
        this.msg = responseCode.getMsg();
        this.responseCode = responseCode;
    }
}


/**
 * {
 * status: 400000
 * msg: "系统繁忙! 请稍后再试"
 * }
 */